package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户和岗位关联 sys_user_post
 * 
 * @author ruoyi
 */
public class SysUserPost
{
    /** 用户ID */
    private Long userId;
    
    /** 岗位ID */
    private Long postId;

    public Long getUserId()
    {
        return userId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getPostId()
    {
        return postId;
    }

    public void setPostId(Long postId)
    {
        this.postId = postId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("postId", getPostId())
            .toString();
    }

    /**
     * 设备1日数据对象 device_day_info_1
     *
     * @author ruoyi
     * @date 2024-08-19
     */
    public static class DeviceDayInfo1 extends BaseEntity
    {
        private static final long serialVersionUID = 1L;

        /** 记录ID */
        private Long id;

        /** 装机容量 kW */
        @Excel(name = "装机容量 kW")
        private Long installedCapacity;

        /** 发电量 kWh */
        @Excel(name = "发电量 kWh")
        private Long productPower;

        /** 等效利用小时数 h */
        @Excel(name = "等效利用小时数 h")
        private Long perpowerRatio;

        public void setId(Long id)
        {
            this.id = id;
        }

        public Long getId()
        {
            return id;
        }
        public void setInstalledCapacity(Long installedCapacity)
        {
            this.installedCapacity = installedCapacity;
        }

        public Long getInstalledCapacity()
        {
            return installedCapacity;
        }
        public void setProductPower(Long productPower)
        {
            this.productPower = productPower;
        }

        public Long getProductPower()
        {
            return productPower;
        }
        public void setPerpowerRatio(Long perpowerRatio)
        {
            this.perpowerRatio = perpowerRatio;
        }

        public Long getPerpowerRatio()
        {
            return perpowerRatio;
        }

        @Override
        public String toString() {
            return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("installedCapacity", getInstalledCapacity())
                .append("productPower", getProductPower())
                .append("perpowerRatio", getPerpowerRatio())
                .toString();
        }
    }
}
